import {http,req} from '../httpUtil'

/**
 * 获取用户权限列表
 */
export function getUserPrivilegeList(){
    return http({
        method : 'post',
        url : 'userPrivilege/getUserPrivilegeByParams'
    }).catch((error) =>{
        console.log(error);
    });
}

/**
 * 新增权限
 */
export function addUserPrivilege(data){
    return http({
        method: "post",
        url: "userPrivilege/addUserPrivilege",
        data: data
    })
}

/**
 * 删除权限
 */
export function deleteUserPrivilege(data){
    return http({
        method: "post",
        url: "userPrivilege/deleteUserPrivilege",
        data: data
    })
}

/**
 * 修改权限
 */
export function updateUserPrivilege(data){
    return http({
        method: "post",
        url: "userPrivilege/updateUserPrivilege",
        data: data
    })
}